/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package snippet.theory3;

/**
 *
 * @author hoang.pt
 */
public class RuntimeDemo {

    public RuntimeDemo() {
    }


    public static void main(String[] a) {

        Runtime rt = Runtime.getRuntime();
        System.out.println(rt.freeMemory());
        System.out.println(rt.maxMemory());

    }
}
